﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Controls"
                    >

    <!-- WebLink style -->
    <Style TargetType="local:WebLink">
        <Setter Property="Foreground" Value="{DynamicResource NormalForegroundBrush}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:WebLink">
                    <TextBlock TextDecorations="{TemplateBinding TextDecorations}"
                               TextWrapping="{TemplateBinding TextWrapping}">
                        <Hyperlink x:Name="PART_Link" NavigateUri="{TemplateBinding Uri}" >
                             <TextBlock Text="{TemplateBinding Text}" Foreground="{DynamicResource NormalForegroundBrush}" />
                        </Hyperlink>
                    </TextBlock>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
</ResourceDictionary>